package com.gopay.common.constants.bank;

import java.io.Serializable;
/**
 * 民生银行常量类
 * @CMBCConstants.java
 */
public class CmbcConstants implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7568606221597375171L;
	
	/** 业务代码 */
	public static final String BINDCERT_BUSINESS_CODE = "B001";
	
	public static final String QUERYORDER_BUSINESS_CODE = "Q001";
	
	public static final String TRANSFER_BUSINESS_CODE = "P006";
	
	/** 查询订单返回状态常量 */
	/*失败*/
	public static final String QUERY_ORDER_FAIL = "0";

	/*成功*/
	public static final String QUERY_ORDER_SUCC = "1";

	/*订单状态异常！请联系银行*/
	public static final String QUERY_ORDER_EXCEP = "6";

	/*银行后台查询失败*/
	public static final String QUERY_ORDER_BANKFAIL = "7";

	/*数据库错误*/
	public static final String QUERY_ORDER_DBERROR = "8";

	/*未找到订单*/
	public static final String QUERY_ORDER_NOFIND = "9";
	
	/** 民生响应报文常量.*/
	
	/** 成功.*/
	public static final String RES_CODE_SUCCESS = "0000";
	
	/** 订单状态 0：成功.*/
	public static final String ORDER_STATE_SUCCESS = "0";
	/** 订单状态 1：待确认.*/
	public static final String ORDER_STATE_WAITAUDIT = "1";
	/** 订单状态 2：已确认.*/
	public static final String ORDER_STATE_AUDITED = "2";
	/** 订单状态 9：作废.*/
	public static final String ORDER_STATE_CANCELLATION = "9";
	/** 订单状态 11：预付中.*/
	public static final String ORDER_STATE_PREPAYING = "11";
	/** 订单状态 12：已预付.*/
	public static final String ORDER_STATE_PREPAYED = "12";
	/** 订单状态 13：已发货.*/
	public static final String ORDER_STATE_CONSIGNMENTED = "13";
	/** 订单状态 14：实付中.*/
	public static final String ORDER_STATE_FACTPAYING = "14";
	/** 订单状态 21：处理中.*/
	public static final String ORDER_STATE_DEALING = "21";
	/** 订单状态 22：失败.*/
	public static final String ORDER_STATE_FAILE = "22";
	
	// 商户交易请求处理结果代码
	/** 商户请求已经接收并处理完成. */
	public static final String ORDER_SUCCESS = "0000";
	
    /** 民生代扣常量. */
    /** 应答码类型 E：错误. */
    public static final String RESP_TYPE_ERROR = "E";
    /** 应答码类型 S：成功. */
    public static final String RESP_TYPE_SUCCESS = "S";
    /** 应答码类型 R：不确定. */
    public static final String RESP_TYPE_DEALING = "R";

    /** 应答码 00000000：交易成功. */
    public static final String RESP_CODE_SUCCESS = "00000000";

    /** 交易处理状态 0：预记(处理中). */
    public static final String TRAN_FLAG_DEALING = "0";
    /** 交易处理状态 1：正常(成功). */
    public static final String TRAN_FLAG_SUCCESS = "1";
    /** 交易处理状态 2：失败. */
    public static final String TRAN_FLAG_FAIL = "2";
    /** 交易处理状态 4：已撤销. */
    public static final String TRAN_FLAG_UNDONE = "4";
    /** 交易处理状态 5：已冲正. */
    public static final String TRAN_FLAG_FLUSHED = "5";
    
    /** 民生跨行代扣常量. */
    /** 应答码 000000：交易成功. */
    public static final String EXEC_CODE_SUCCESS = "000000";
    /** 应答码 000015：交易流水不存在. */
    public static final String EXEC_CODE_NOTEXIST = "000015";
    
    /** 认证状态00：认证成功. */
    public static final String VALIDATE_STATUS_SUCCESS = "00";
    /** 认证状态99：认证失败. */
    public static final String VALIDATE_STATUS_FAIL = "99";
    
    /** 白名单采集状态000000：采集成功. */
    public static final String WHITELIST_STATUS_SUCCESS = "000000";
    /** 白名单采集状态000022：账号信息重复. */
    public static final String WHITELIST_STATUS_REPEAT = "000022";
    
    /*********************** 民生代扣业务交易码 ************************/
    /*** 实名身份认证 */
    public final static String CMBCADPAY_CERTIFICATION = "1004";
    /*** 白名单采集 */
    public final static String CMBCADPAY_WHITELIST = "1007";
    /*** 跨行代扣 */
    public final static String CMBCADPAY_CROSS_PAYMENT = "1003";
    /*** 跨行代扣交易查询 */
    public final static String CMBCADPAY_CROSS_QUERY = "3003";
    /*** 本行代扣 */
    public final static String CMBCADPAY_PAYMENT = "1009";
    /*** 本行代扣交易查询 */
    public final static String CMBCADPAY_QUERY = "3009";
    /*** 实名身份认证结果查询 */
    public final static String CMBCADPAY_CERTIFICATION_QUERY = "3004";
    
    /** 民生扫码支付常量    */
    /** 交易成功 */
    public static final String SCAN_STATIS_SUCCESS = "000000";
    /** 交易成功 */
    public static final String SCAN_BATCH_SUCCESS = "000090";
    /***    接口类型    ***/
    /** 商户入驻*/
    public static final String MERCHANT_SETTLED = "SMZF001";
    /** 扫码支付*/
    public static final String SCAN_PAY = "SMZF002";
    /** 微信公众号支付、支付宝服务窗支付*/
    public static final String JS_PAY = "SMZF010";
    /** 申请退款*/
    public static final String REFUND = "SMZF004";
    /** 交易查询*/
    public static final String ORDER_QUERY = "SMZF006";
    /** 商户查询*/
    public static final String MERCHANT_QUERY = "SMZF007";
    /** 商户修改*/
    public static final String MERCHANT_MODIFY = "SMZF009";
    /** 获取对账文件*/
    public static final String GET_ACCT_FILE = "SMZF020";
    /** 商户配置*/
    public static final String MERCHANT_OPERATION = "SMZF030";
    /** 商户配置查询*/
    public static final String MERCHANT_OPERATION_QUERY = "SMZF031";
    /***  商户入驻类型：WXZF-微信 ***/
    public static final String WECHAT_SETTLED = "WXZF";
    /***  商户入驻状态：入驻状态 01:带入驻 02:成功 03:失败 ***/
    public static final String WECHAT_SETTLED_SUCCESS = "02";
    /***  商户入驻状态：入驻状态 01:带入驻 02:成功 03:失败 ***/
    public static final String WECHAT_SETTLED_FAIL = "03";
    /***  商户入驻状态：入驻状态 01:带入驻 02:成功 03:失败 ***/
    public static final String WECHAT_SETTLED_WAIT = "01";
    /***  商户入驻类型：ZFBZF-支付宝 ***/
    public static final String ZFB_SETTLED = "ZFBZF";
    /***  商户入驻状态：入驻状态 01:带入驻 02:成功 03:失败 ***/
    public static final String ZFB_SETTLED_SUCCESS = "02";
    /***  商户入驻状态：入驻状态 01:带入驻 02:成功 03:失败 ***/
    public static final String ZFB_SETTLED_FAIL = "03";
    /***  商户入驻状态：入驻状态 01:带入驻 02:成功 03:失败 ***/
    public static final String ZFB_SETTLED_WAIT = "01";
}
